//
//  ShoppingCartModel.m
//  LoveTrail
//
//  Created by giantumbrella on 15/6/25.
//  Copyright (c) 2015年 赵娟. All rights reserved.
//

#import "ShoppingCartModel.h"

@implementation ShoppingCartModel

- (void)decodeDic:(NSDictionary *)dic
{
    if (dic) {
        if (![[dic objectForKey:@"imagURL"] isKindOfClass:[NSNull class]]) {
            self.imagURL = [dic objectForKey:@"imagURL"];
        }
        if (![[dic objectForKey:@"title"] isKindOfClass:[NSNull class]]) {
            self.title = [dic objectForKey:@"title"];
        }
        if (![[dic objectForKey:@"color"] isKindOfClass:[NSNull class]]) {
            self.color = [dic objectForKey:@"color"];
        }
        if (![[dic objectForKey:@"price"] isKindOfClass:[NSNull class]]) {
            self.price = [dic objectForKey:@"price"];
        }
        if (![[dic objectForKey:@"amount"] isKindOfClass:[NSNull class]]) {
            self.amount = [dic objectForKey:@"amount"];
        }
    }
}
@end
